/**
 * Created with Vim7.3 ubuntu12.04
 * @fileOverview : 
 * @author : Lyle <lylechen2014@gmial.com>
 * @since : 2014-08-21 15:30:53
 * @filename : static/nmm/src/views/termsService.js
 * @version : 
 * @description : 
 */

define(function(require, exports, module){

    var termsServiceView,
        mId = 'termsService',reRender = false,menuName = 'termsService',
        tpl = require('{view}termsService.tpl');

    termsServiceView = Backbone.View.extend({

        el: 'body',

        template: _.template(tpl),

        bindEvt : function() {
            var dom = $('#'+mId),tthis = this;
            dom.find('.back').tap(function(){
                tthis.goBack();
            }); 
        },

        initialize: function () {

        },

        render: function (obj) {
        
            if ($('#'+mId).length < 1) { 
                $('body').append(this.template(lang)); 
                this.bindEvt(); 
            } else {
                $('#'+mId).css('display','block');
            }
          
            setTimeout(function() {
                window.scroll(0,0);
            },10);

        },

        goBack : function() {
            window.history.go(-1);
        }
    });

    module.exports = termsServiceView;
})

